package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
 * @author xie'lin'feng
 * @date 2020-08-06-14:35
 * @description 轮播广告实体类
 */
public class Banner{
	//属性
	private String id;
	//轮播图片路径
	private String bannerImage;
	//图片链接路径
	private String url;
	//渠道(1:微信 2:pc  3:ios 4:android)
	private String channel;
	//图片顺序
	private Integer index;
	//活动开始时间
	private Date beginTime;
	//活动结束时间
	private Date endTime;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//跳转类型 1.跳url；2.跳产品详情，3.跳团购；4.指定原生页面一，一行一个产品;5.指定的原生页面二，一行两个产品 6 国家馆 7拼团 8领钱中心 9社区）
	private Integer type;
	//构造器
	public Banner(){}
	public Banner(String id,String bannerImage,String url,String channel,Integer index,Date beginTime,Date endTime,Date createTime,Integer type){
		this.id=id;
		this.bannerImage=bannerImage;
		this.url=url;
		this.channel=channel;
		this.index=index;
		this.beginTime=beginTime;
		this.endTime=endTime;
		this.createTime=createTime;
		this.type=type;
}
	//getter setter方法
	public void setId(String id){
		this.id=id;
	}
	public String getId(){
		return id;
	}
	public void setBannerImage(String bannerImage){
		this.bannerImage=bannerImage;
	}
	public String getBannerImage(){
		return bannerImage;
	}
	public void setUrl(String url){
		this.url=url;
	}
	public String getUrl(){
		return url;
	}
	public void setChannel(String channel){
		this.channel=channel;
	}
	public String getChannel(){
		return channel;
	}
	public void setIndex(Integer index){
		this.index=index;
	}
	public Integer getIndex(){
		return index;
	}
	public void setBeginTime(Date beginTime){
		this.beginTime=beginTime;
	}
	public Date getBeginTime(){
		return beginTime;
	}
	public void setEndTime(Date endTime){
		this.endTime=endTime;
	}
	public Date getEndTime(){
		return endTime;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public void setType(Integer type){
		this.type=type;
	}
	public Integer getType(){
		return type;
	}
	public String toString(){
		return "Banner [id=" + id + ", bannerImage=" + bannerImage + ", url=" + url + ", channel=" + channel + ", index=" + index + ", beginTime=" + beginTime + ", endTime=" + endTime + ", createTime=" + createTime + ", type=" + type + "]";
	}
}

